package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hellobike.haxing.modules.wms.entity.ReturnWarehouseDetail;
import com.hellobike.haxing.modules.wms.mapper.ReturnWarehouseDetailMapper;
import com.hellobike.haxing.modules.wms.service.IReturnWarehouseDetailService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: t_wms_return_warehouse_detail
 * @Author: haxing-boot
 * @Date:   2020-02-07
 * @Version: V1.0
 */
@Service
public class ReturnWarehouseDetailServiceImpl extends ServiceImpl<ReturnWarehouseDetailMapper, ReturnWarehouseDetail> implements IReturnWarehouseDetailService {

    @Override
    public List<ReturnWarehouseDetail> getByHeaderId(Long headerId) {
        ReturnWarehouseDetail param = new ReturnWarehouseDetail();
        param.setReturnHeaderId(headerId);
        Wrapper<ReturnWarehouseDetail> wrapper = new QueryWrapper<>(param);
        return baseMapper.selectList(wrapper);
    }
}
